﻿@*1*@
@model List<XIN.Models.Task>
@*2*@
@*@model XIN.Models.Task*@
@{
    ViewBag.Title = "Index";
}
@*@ViewData["Id"]
    <br>
    @TempData["Name"]
    <br>
    @ViewBag.Age*@
@*@TempData["one"]
@ViewBag.One.Content*@

<h2>Index</h2>
<table class="table table-striped table-hover" >
    <thead>
        <tr>
            <td>编号</td>
            <td>内容</td>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td>@item.TaskID</td>
                <td>@item.Content</td>
                <td><a href="#" class="btn btn-danger">删除</a></td>
            </tr>
        }
    </tbody>
</table>

